/**
 * Create by CaoWenjian
 *
 * @copyRight: 2018
 **/
package com.bjboot.caocao.system.service;

import com.bjboot.caocao.system.domain.DeptDO;
import com.bjboot.caocao.system.domain.Tree;

import java.util.List;
import java.util.Map;

/**
 *@Description 部门管理对应的service
 *@Author 操文健
 *@Date 2018-09-12 上午11:37
 *@Version 1.0
 **/
public interface DeptService {

    DeptDO get(Long deptId);

    List<DeptDO> list(Map<String, Object> map);

    int count(Map<String, Object> map);

    int save(DeptDO sysDept);

    int update(DeptDO sysDept);

    int remove(Long deptId);

    int batchRemove(Long[] deptIds);

    Tree<DeptDO> getTree();

    boolean checkDeptHasUser(Long deptId);
}
